; Disassembly of the file "Z:\home\knoppix\CoBra Project\Software\CPM\CPM 860K analysis\Boot_Sector.bin" ; ; CPU Type: Z80 ; ; Using the opcode map file "Z:\home\knoppix\CoBra Project\Software\CPM\CPM 860K analysis\Boot_Sector.bin.opmap" ; ; Created with dZ80 2.0 ; ; on Friday, 03 of February 2017 at 03:19 PM ; 0000 C38000 JP $0080 0003 80 DEFB $80 0004 00 DEFB $00 0005 00 DEFB $00 0006 00 DEFB $00 0007 00 DEFB $00 0008 00 DEFB $00 0009 00 DEFB $00 000A 00 DEFB $00 000B 00 DEFB $00 000C 00 DEFB $00 000D 00 DEFB $00 000E 00 DEFB $00 000F 00 DEFB $00 0010 00 DEFB $00 0011 00 DEFB $00 0012 00 DEFB $00 0013 00 DEFB $00 0014 00 DEFB $00 0015 00 DEFB $00 0016 00 DEFB $00 0017 00 DEFB $00 0018 00 DEFB $00 0019 00 DEFB $00 001A 00 DEFB $00 001B 00 DEFB $00 001C 00 DEFB $00 001D 00 DEFB $00 001E 00 DEFB $00 001F 00 DEFB $00 0020 00 DEFB $00 0021 00 DEFB $00 0022 00 DEFB $00 0023 00 DEFB $00 0024 00 DEFB $00 0025 00 DEFB $00 0026 00 DEFB $00 0027 00 DEFB $00 0028 00 DEFB $00 0029 00 DEFB $00 002A 00 DEFB $00 002B 00 DEFB $00 002C 00 DEFB $00 002D 00 DEFB $00 002E 00 DEFB $00 002F 00 DEFB $00 0030 00 DEFB $00 0031 00 DEFB $00 0032 00 DEFB $00 0033 00 DEFB $00 0034 00 DEFB $00 0035 00 DEFB $00 0036 00 DEFB $00 0037 00 DEFB $00 0038 00 DEFB $00 0039 00 DEFB $00 003A 00 DEFB $00 003B 00 DEFB $00 003C 00 DEFB $00 003D 00 DEFB $00 003E 00 DEFB $00 003F 00 DEFB $00 0040 00 DEFB $00 0041 00 DEFB $00 0042 00 DEFB $00 0043 00 DEFB $00 0044 00 DEFB $00 0045 00 DEFB $00 0046 00 DEFB $00 0047 00 DEFB $00 0048 00 DEFB $00 0049 00 DEFB $00 004A 00 DEFB $00 004B 00 DEFB $00 004C 00 DEFB $00 004D 00 DEFB $00 004E 00 DEFB $00 004F 00 DEFB $00 0050 00 DEFB $00 0051 00 DEFB $00 0052 00 DEFB $00 0053 00 DEFB $00 0054 00 DEFB $00 0055 00 DEFB $00 0056 00 DEFB $00 0057 00 DEFB $00 0058 00 DEFB $00 0059 00 DEFB $00 005A 00 DEFB $00 005B 00 DEFB $00 005C 00 DEFB $00 005D 00 DEFB $00 005E 00 DEFB $00 005F 00 DEFB $00 0060 00 DEFB $00 0061 00 DEFB $00 0062 00 DEFB $00 0063 00 DEFB $00 0064 00 DEFB $00 0065 00 DEFB $00 0066 00 DEFB $00 0067 00 DEFB $00 0068 00 DEFB $00 0069 00 DEFB $00 006A 00 DEFB $00 006B 00 DEFB $00 006C 00 DEFB $00 006D 00 DEFB $00 006E 00 DEFB $00 006F 00 DEFB $00 0070 00 DEFB $00 0071 00 DEFB $00 0072 00 DEFB $00 0073 00 DEFB $00 0074 00 DEFB $00 0075 00 DEFB $00 0076 00 DEFB $00 0077 00 DEFB $00 0078 00 DEFB $00 0079 00 DEFB $00 007A 00 DEFB $00 007B 00 DEFB $00 007C 00 DEFB $00 007D 00 DEFB $00 007E 00 DEFB $00 007F 00 DEFB $00 0080 F3 DI 0081 210001 LD HL,$0100 0084 F9 LD SP,HL ; set stack at $0100 0085 3E92 LD A,$92 ; control word for 8255: Mode Set flag=active, ; ; Group A: Select Mode 0, ; ; Port A set to Input mode, ; ; Port C (upper half) set to Output Mode, ; ; Group B: Select Mode 0, ; ; Port B set to Input Mode, ; ; Port C (lower half) set to Output Mode 0087 D3DF OUT ($DF),A ; write control word to 8255 0089 D3DF OUT ($DF),A ; write control word to 8255 (again !?) 008B 3E41 LD A,$41 008D D3FE OUT ($FE),A ; set 06 to "1" for VRAM access, border to blue 008F 110062 LD DE,$6200 0092 01001E LD BC,$1E00 0095 EDB0 LDIR ; copy $0100-$1EFF to $6200-$7FFF (BLOCK#1+CCP) BLOCK#1=$0100-$16FF (5632 bytes), CCP=$1700-$1EFF (2048 bytes) 0097 1100E8 LD DE,$E800 009A 010018 LD BC,$1800 009D EDB0 LDIR ; copy $1F00-$36FF to $E800-$FFFF (BDOS+BIOS) BDOS=$1F00-$2CFF (3584 bytes), BIOS=$2D00-$36FF (2560 bytes) 009F CBB7 RES 6,A ; set 06 to "0" for DRAM access 00A1 D3FE OUT ($FE),A 00A3 210037 LD HL,$3700 00A6 110001 LD DE,$0100 00A9 010009 LD BC,$0900 00AC EDB0 LDIR ; copy $3700-$3FFF to $0100-$09FF (DEMO?) DEMO=$3700-$3FFF (2304 bytes) 00AE 010000 LD BC,$0000 00B1 00 NOP 00B2 00 NOP 00B3 00 NOP 00B4 00 NOP 00B5 00 NOP 00B6 00 NOP 00B7 00 NOP 00B8 00 NOP 00B9 C300F6 JP $F600 ; jump to start of BIOS (BIOS function #0, BOOT) 00BC 00 DEFB $00 00BD 00 DEFB $00 00BE 00 DEFB $00 00BF 00 DEFB $00 00C0 00 DEFB $00 00C1 00 DEFB $00 00C2 00 DEFB $00 00C3 00 DEFB $00 00C4 00 DEFB $00 00C5 00 DEFB $00 00C6 00 DEFB $00 00C7 00 DEFB $00 00C8 00 DEFB $00 00C9 00 DEFB $00 00CA 00 DEFB $00 00CB 00 DEFB $00 00CC 00 DEFB $00 00CD 00 DEFB $00 00CE 00 DEFB $00 00CF 00 DEFB $00 00D0 00 DEFB $00 00D1 00 DEFB $00 00D2 00 DEFB $00 00D3 00 DEFB $00 00D4 00 DEFB $00 00D5 00 DEFB $00 00D6 00 DEFB $00 00D7 00 DEFB $00 00D8 00 DEFB $00 00D9 00 DEFB $00 00DA 00 DEFB $00 00DB 00 DEFB $00 00DC 00 DEFB $00 00DD 00 DEFB $00 00DE 00 DEFB $00 00DF 00 DEFB $00 00E0 00 DEFB $00 00E1 00 DEFB $00 00E2 00 DEFB $00 00E3 00 DEFB $00 00E4 00 DEFB $00 00E5 00 DEFB $00 00E6 00 DEFB $00 00E7 00 DEFB $00 00E8 00 DEFB $00 00E9 00 DEFB $00 00EA 00 DEFB $00 00EB 00 DEFB $00 00EC 00 DEFB $00 00ED 00 DEFB $00 00EE 00 DEFB $00 00EF 00 DEFB $00 00F0 00 DEFB $00 00F1 00 DEFB $00 00F2 00 DEFB $00 00F3 00 DEFB $00 00F4 00 DEFB $00 00F5 00 DEFB $00 00F6 00 DEFB $00 00F7 00 DEFB $00 00F8 00 DEFB $00 00F9 00 DEFB $00 00FA 00 DEFB $00 00FB 00 DEFB $00 00FC 00 DEFB $00 00FD 00 DEFB $00 00FE 00 DEFB $00 00FF 00 DEFB $00 0100 00 DEFB $00 0101 00 DEFB $00 0102 00 DEFB $00 0103 00 DEFB $00 0104 00 DEFB $00 0105 00 DEFB $00 0106 00 DEFB $00 0107 00 DEFB $00 0108 00 DEFB $00 0109 00 DEFB $00 010A 00 DEFB $00 010B 00 DEFB $00 010C 00 DEFB $00 010D 00 DEFB $00 010E 00 DEFB $00 010F 00 DEFB $00 0110 00 DEFB $00 0111 00 DEFB $00 0112 00 DEFB $00 0113 00 DEFB $00 0114 00 DEFB $00 0115 00 DEFB $00 0116 00 DEFB $00 0117 00 DEFB $00 0118 00 DEFB $00 0119 00 DEFB $00 011A 00 DEFB $00 011B 00 DEFB $00 011C 00 DEFB $00 011D 00 DEFB $00 011E 00 DEFB $00 011F 00 DEFB $00 0120 00 DEFB $00 0121 00 DEFB $00 0122 00 DEFB $00 0123 00 DEFB $00 0124 00 DEFB $00 0125 00 DEFB $00 0126 00 DEFB $00 0127 00 DEFB $00 0128 00 DEFB $00 0129 00 DEFB $00 012A 00 DEFB $00 012B 00 DEFB $00 012C 00 DEFB $00 012D 00 DEFB $00 012E 00 DEFB $00 012F 00 DEFB $00 0130 00 DEFB $00 0131 00 DEFB $00 0132 00 DEFB $00 0133 00 DEFB $00 0134 00 DEFB $00 0135 00 DEFB $00 0136 00 DEFB $00 0137 00 DEFB $00 0138 00 DEFB $00 0139 00 DEFB $00 013A 00 DEFB $00 013B 00 DEFB $00 013C 00 DEFB $00 013D 00 DEFB $00 013E 00 DEFB $00 013F 00 DEFB $00 0140 00 DEFB $00 0141 00 DEFB $00 0142 00 DEFB $00 0143 00 DEFB $00 0144 00 DEFB $00 0145 00 DEFB $00 0146 00 DEFB $00 0147 00 DEFB $00 0148 00 DEFB $00 0149 00 DEFB $00 014A 00 DEFB $00 014B 00 DEFB $00 014C 00 DEFB $00 014D 00 DEFB $00 014E 00 DEFB $00 014F 00 DEFB $00 0150 00 DEFB $00 0151 00 DEFB $00 0152 00 DEFB $00 0153 00 DEFB $00 0154 00 DEFB $00 0155 00 DEFB $00 0156 00 DEFB $00 0157 00 DEFB $00 0158 00 DEFB $00 0159 00 DEFB $00 015A 00 DEFB $00 015B 00 DEFB $00 015C 00 DEFB $00 015D 00 DEFB $00 015E 00 DEFB $00 015F 00 DEFB $00 0160 00 DEFB $00 0161 00 DEFB $00 0162 00 DEFB $00 0163 00 DEFB $00 0164 00 DEFB $00 0165 00 DEFB $00 0166 00 DEFB $00 0167 00 DEFB $00 0168 00 DEFB $00 0169 00 DEFB $00 016A 00 DEFB $00 016B 00 DEFB $00 016C 00 DEFB $00 016D 00 DEFB $00 016E 00 DEFB $00 016F 00 DEFB $00 0170 00 DEFB $00 0171 00 DEFB $00 0172 00 DEFB $00 0173 00 DEFB $00 0174 00 DEFB $00 0175 00 DEFB $00 0176 00 DEFB $00 0177 00 DEFB $00 0178 00 DEFB $00 0179 00 DEFB $00 017A 00 DEFB $00 017B 00 DEFB $00 017C 00 DEFB $00 017D 00 DEFB $00 017E 00 DEFB $00 017F 00 DEFB $00 0180 01FE00 LD BC,$00FE 0183 ED78 IN A,(C) 0185 E63F AND $3F 0187 FE3F CP $3F 0189 20F5 JR NZ,$0180 018B C373F8 JP $F873 018E 2147F6 LD HL,$F647 0191 3E04 LD A,$04 0193 AE XOR (HL) 0194 77 LD (HL),A 0195 E604 AND $04 0197 210801 LD HL,$0108 019A 2803 JR Z,$019F 019C 210204 LD HL,$0402 019F 2248F6 LD ($F648),HL 01A2 3A40F6 LD A,($F640) 01A5 C364F9 JP $F964 01A8 3AC068 LD A,($68C0) 01AB EE18 XOR $18 01AD 32C068 LD ($68C0),A 01B0 18F0 JR $01A2 01B2 3A4EF6 LD A,($F64E) 01B5 FE82 CP $82 01B7 CA8E62 JP Z,$628E 01BA FEDE CP $DE 01BC 28EA JR Z,$01A8 01BE FEE0 CP $E0 01C0 CC1176 CALL Z,$7611 01C3 18DD JR $01A2 01C5 3A40F6 LD A,($F640) 01C8 325F78 LD ($785F),A 01CB CBF7 SET 6,A 01CD 3240F6 LD ($F640),A 01D0 FB EI 01D1 D9 EXX 01D2 08 EX AF,AF' 01D3 FE0B CP $0B 01D5 301C JR NC,$01F3 01D7 ED735878 LD ($7858),SP 01DB 315878 LD SP,$7858 01DE 216078 LD HL,$7860 01E1 87 ADD A,A 01E2 5F LD E,A 01E3 1600 LD D,$00 01E5 19 ADD HL,DE 01E6 5E LD E,(HL) 01E7 23 INC HL 01E8 56 LD D,(HL) 01E9 D5 PUSH DE 01EA D9 EXX 01EB E1 POP HL 01EC CD9C67 CALL $679C 01EF ED7B5878 LD SP,($7858) 01F3 D9 EXX 01F4 F3 DI 01F5 3A5F78 LD A,($785F) 01F8 3240F6 LD ($F640),A 01FB 18A5 JR $01A2 01FD 00 DEFB $00 01FE 00 DEFB $00 01FF 00 DEFB $00